package com.ktgj.common.core.utils.xml;

public class XDocument extends XElement
{

	private XDeclaration declaration;
	XElement docElement;

	public XDocument()
	{
	}

	public XDocument(XDeclaration declaration)
	{
		this.declaration = declaration;
	}

	public XDocument(XDeclaration declaration, XElement docElement)
	{
		this.replaceWith(docElement);
		this.declaration = declaration;
		this.docElement = docElement;

	}

	public XDeclaration getDeclaration()
	{
		return declaration;
	}

	public XElement getDocElement()
	{
		return docElement;
	}

	public void setDocElement(XElement docElement)
	{
		this.docElement = docElement;
	}

	public void setDeclaration(XDeclaration declaration)
	{
		this.declaration = declaration;
	}

}
